const express=require('express')
const router=express.Router()

router.get('',(req,res)=>{
    console.log(req.query)
    res.send('get 请求路由成功')
})
router.post('',(req,res)=>{
    console.log(req.body)
    const body=req.body
    res.send({
        status:0,
        msg:'POST请求成功',
        data:body
    })
})

module.exports=router